<?php

namespace app\auth\model;

use app\common\model\Curd;
use server\File;

class Member extends Curd
{
    protected $pk="id";
    protected $name="member";
//    $table不会自动加前缀
//    protected $table='addons_member';
    protected $autoWriteTimestamp = true;
    protected $validates= '\aop\validate\Member';
    protected $deleteTime = 'delete_time';

    public function before_insert(){
        $this->data['password']=password_hash($this->data['password'],PASSWORD_DEFAULT);
    }
//    数据插入前的相关处理
    public function after_insert()
    {
//        上传图片到指定文件
    }



}
